package cj.web.marry.dao;
/*
 *  
 *  
*/
import java.util.List;
import java.util.Map;

import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.SQL;

/**
 * 
 * @author 
 *
 */
@DAO
public interface VoteDAO{
	
	@SQL("SELECT id,img,name,startDate,endDate FROM Vote WHERE deleteFlag=1 ORDER BY orderNo ")
    List<Map> queryAll();
	
    @SQL("SELECT id,img,name,startDate,endDate FROM Vote WHERE id=:1")
    List<Map> queryById(int id);
}